<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Editor GUI Table: GUIExtensions.GUITable Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Logo_rounded.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Editor GUI Table
   </div>
   <div id="projectbrief">A plugin to allow programmers to easily create customizable tables in Unity Editor</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_g_u_i_extensions_1_1_g_u_i_table.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_g_u_i_extensions_1_1_g_u_i_table-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GUIExtensions.GUITable Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Main Class of the Table Plugin. This contains static functions to draw a table, from the most basic to the most customizable.  
 <a href="class_g_u_i_extensions_1_1_g_u_i_table.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a3fd53841df17f9b2d1be7678a0cdc1a2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table.html#a3fd53841df17f9b2d1be7678a0cdc1a2">DrawTable</a> (SerializedProperty collectionProperty, <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> tableState)</td></tr>
<tr class="memdesc:a3fd53841df17f9b2d1be7678a0cdc1a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a table just from the collection's property. This will create columns for all the visible members in the elements' class, similar to what Unity would show in the classic vertical collection display, but as a table instead.  <a href="#a3fd53841df17f9b2d1be7678a0cdc1a2">More...</a><br /></td></tr>
<tr class="separator:a3fd53841df17f9b2d1be7678a0cdc1a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bd991010a9d57932cd5fb0d39abd910"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table.html#a3bd991010a9d57932cd5fb0d39abd910">DrawTable</a> (SerializedProperty collectionProperty, List&lt; string &gt; properties, <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> tableState)</td></tr>
<tr class="memdesc:a3bd991010a9d57932cd5fb0d39abd910"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a table using just the paths of the properties to display. This will create columns automatically using the property name as title, and will create <a class="el" href="class_g_u_i_extensions_1_1_property_entry.html" title="This entry class just uses EditorGUILayout.PropertyField to draw a given property. This is the basic way to use GUITable. It will draw the properties the same way Unity would by default. ">PropertyEntry</a> instances for each element.  <a href="#a3bd991010a9d57932cd5fb0d39abd910">More...</a><br /></td></tr>
<tr class="separator:a3bd991010a9d57932cd5fb0d39abd910"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a7eacaecb5c5e531395c5e792898d2a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table.html#a0a7eacaecb5c5e531395c5e792898d2a">DrawTable</a> (SerializedProperty collectionProperty, List&lt; <a class="el" href="class_g_u_i_extensions_1_1_property_column.html">PropertyColumn</a> &gt; propertyColumns, <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> tableState)</td></tr>
<tr class="memdesc:a0a7eacaecb5c5e531395c5e792898d2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a table by defining the columns's settings and the path of the corresponding properties. This will automatically create Property Entries using these paths.  <a href="#a0a7eacaecb5c5e531395c5e792898d2a">More...</a><br /></td></tr>
<tr class="separator:a0a7eacaecb5c5e531395c5e792898d2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3eefa100a3935e108b9919c42d441742"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table.html#a3eefa100a3935e108b9919c42d441742">DrawTable</a> (SerializedProperty collectionProperty, List&lt; <a class="el" href="class_g_u_i_extensions_1_1_selector_column.html">SelectorColumn</a> &gt; columns, <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> tableState)</td></tr>
<tr class="memdesc:a3eefa100a3935e108b9919c42d441742"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a table from the columns' settings, the path for the corresponding properties and a selector function that takes a SerializedProperty and returns the <a class="el" href="class_g_u_i_extensions_1_1_table_entry.html" title="Base class for all table entries. DrawEntry needs to be overriden to draw the entry for the cell...">TableEntry</a> to put in the corresponding cell.  <a href="#a3eefa100a3935e108b9919c42d441742">More...</a><br /></td></tr>
<tr class="separator:a3eefa100a3935e108b9919c42d441742"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1490522625c22692a9bfa1ba27f696ac"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table.html#a1490522625c22692a9bfa1ba27f696ac">DrawTable</a> (List&lt; <a class="el" href="class_g_u_i_extensions_1_1_table_column.html">TableColumn</a> &gt; columns, List&lt; List&lt; <a class="el" href="class_g_u_i_extensions_1_1_table_entry.html">TableEntry</a> &gt;&gt; entries, <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> tableState)</td></tr>
<tr class="memdesc:a1490522625c22692a9bfa1ba27f696ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a table completely manually. Each entry has to be created and given as parameter in entries.  <a href="#a1490522625c22692a9bfa1ba27f696ac">More...</a><br /></td></tr>
<tr class="separator:a1490522625c22692a9bfa1ba27f696ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Main Class of the Table Plugin. This contains static functions to draw a table, from the most basic to the most customizable. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a3fd53841df17f9b2d1be7678a0cdc1a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fd53841df17f9b2d1be7678a0cdc1a2">&#9670;&nbsp;</a></span>DrawTable() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> GUIExtensions.GUITable.DrawTable </td>
          <td>(</td>
          <td class="paramtype">SerializedProperty&#160;</td>
          <td class="paramname"><em>collectionProperty</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td>
          <td class="paramname"><em>tableState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw a table just from the collection's property. This will create columns for all the visible members in the elements' class, similar to what Unity would show in the classic vertical collection display, but as a table instead. </p>
<dl class="section return"><dt>Returns</dt><dd>The updated table state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">collectionProperty</td><td>The serialized property of the collection.</td></tr>
    <tr><td class="paramname">tableState</td><td>The Table state.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3bd991010a9d57932cd5fb0d39abd910"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bd991010a9d57932cd5fb0d39abd910">&#9670;&nbsp;</a></span>DrawTable() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> GUIExtensions.GUITable.DrawTable </td>
          <td>(</td>
          <td class="paramtype">SerializedProperty&#160;</td>
          <td class="paramname"><em>collectionProperty</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; string &gt;&#160;</td>
          <td class="paramname"><em>properties</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td>
          <td class="paramname"><em>tableState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw a table using just the paths of the properties to display. This will create columns automatically using the property name as title, and will create <a class="el" href="class_g_u_i_extensions_1_1_property_entry.html" title="This entry class just uses EditorGUILayout.PropertyField to draw a given property. This is the basic way to use GUITable. It will draw the properties the same way Unity would by default. ">PropertyEntry</a> instances for each element. </p>
<dl class="section return"><dt>Returns</dt><dd>The updated table state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">collectionProperty</td><td>The serialized property of the collection.</td></tr>
    <tr><td class="paramname">properties</td><td>The paths (names) of the properties to display.</td></tr>
    <tr><td class="paramname">tableState</td><td>The Table state.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a0a7eacaecb5c5e531395c5e792898d2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a7eacaecb5c5e531395c5e792898d2a">&#9670;&nbsp;</a></span>DrawTable() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> GUIExtensions.GUITable.DrawTable </td>
          <td>(</td>
          <td class="paramtype">SerializedProperty&#160;</td>
          <td class="paramname"><em>collectionProperty</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; <a class="el" href="class_g_u_i_extensions_1_1_property_column.html">PropertyColumn</a> &gt;&#160;</td>
          <td class="paramname"><em>propertyColumns</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td>
          <td class="paramname"><em>tableState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw a table by defining the columns's settings and the path of the corresponding properties. This will automatically create Property Entries using these paths. </p>
<dl class="section return"><dt>Returns</dt><dd>The updated table state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">collectionProperty</td><td>The serialized property of the collection.</td></tr>
    <tr><td class="paramname">propertyColumns</td><td>The Property columns, that contain the columns properties and the corresponding property path.</td></tr>
    <tr><td class="paramname">tableState</td><td>The Table state.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3eefa100a3935e108b9919c42d441742"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3eefa100a3935e108b9919c42d441742">&#9670;&nbsp;</a></span>DrawTable() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> GUIExtensions.GUITable.DrawTable </td>
          <td>(</td>
          <td class="paramtype">SerializedProperty&#160;</td>
          <td class="paramname"><em>collectionProperty</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; <a class="el" href="class_g_u_i_extensions_1_1_selector_column.html">SelectorColumn</a> &gt;&#160;</td>
          <td class="paramname"><em>columns</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td>
          <td class="paramname"><em>tableState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw a table from the columns' settings, the path for the corresponding properties and a selector function that takes a SerializedProperty and returns the <a class="el" href="class_g_u_i_extensions_1_1_table_entry.html" title="Base class for all table entries. DrawEntry needs to be overriden to draw the entry for the cell...">TableEntry</a> to put in the corresponding cell. </p>
<dl class="section return"><dt>Returns</dt><dd>The updated table state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">collectionProperty</td><td>The serialized property of the collection.</td></tr>
    <tr><td class="paramname">columns</td><td>The Selector Columns.</td></tr>
    <tr><td class="paramname">tableState</td><td>The Table state.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1490522625c22692a9bfa1ba27f696ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1490522625c22692a9bfa1ba27f696ac">&#9670;&nbsp;</a></span>DrawTable() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a> GUIExtensions.GUITable.DrawTable </td>
          <td>(</td>
          <td class="paramtype">List&lt; <a class="el" href="class_g_u_i_extensions_1_1_table_column.html">TableColumn</a> &gt;&#160;</td>
          <td class="paramname"><em>columns</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">List&lt; List&lt; <a class="el" href="class_g_u_i_extensions_1_1_table_entry.html">TableEntry</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>entries</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table_state.html">GUITableState</a>&#160;</td>
          <td class="paramname"><em>tableState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Draw a table completely manually. Each entry has to be created and given as parameter in entries. </p>
<dl class="section return"><dt>Returns</dt><dd>The updated table state.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">columns</td><td>The Columns of the table.</td></tr>
    <tr><td class="paramname">entries</td><td>The Entries as a list of rows.</td></tr>
    <tr><td class="paramname">tableState</td><td>The Table state.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/jquentin/Documents/Projects/EditorGUITable/Assets/GUITable/Editor/GUITable.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_g_u_i_extensions.html">GUIExtensions</a></li><li class="navelem"><a class="el" href="class_g_u_i_extensions_1_1_g_u_i_table.html">GUITable</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
